package ns3.animator.app.view.comp;

import java.util.List;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.ListModel;

import ns3.animator.app.globle.StaticDataContainer;



public class ListBaseComponent {

	
	
	private JLabel label_title;

	JComboBox listItems;
	
	public ListBaseComponent(){
		
		label_title= new JLabel();
		listItems= new JComboBox();
		
		
	}
	
	public ListBaseComponent(String listTitle){
		label_title= new JLabel();
		listItems= new JComboBox();
		label_title.setText(listTitle);
		listItems.setModel(StaticDataContainer.getDataModel(listTitle));
	
		
	}
	
	public ListBaseComponent(String listTitle,ArrayListComboBoxModel dataModel){
		label_title.setText(listTitle);
		listItems.setModel(dataModel);
	
		
	}


	public JComboBox getListItems() {
		return listItems;
	}


	public JLabel getLabel_title() {
		return label_title;
	}


	
	
	
}
